#ifndef ABSTRACTTABLE_H
#define ABSTRACTTABLE_H

#include <QObject>
#include <QVariant>
#include <QSqlDatabase>
#include <QSqlRecord>
#include <QSqlQuery>
#include <QSqlField>
#include <QSqlError>
#include <QDebug>

class AbstractTable
{
public:

    AbstractTable(const QString &connectionName);

    virtual ~AbstractTable();

    QSqlQuery TransactionExec(const QString &sqlstr, bool &isOk);

    bool FillField(const QString &table, const QVariant &variant, QMap<QString, QString> &fieldMap);

protected:
    QString         m_connectionName;
};

#endif // ABSTRACTTABLE_H
